package com.byxy.ssm.demo.dao;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.byxy.ssm.demo.entity.Tab;

public interface TabDao {

	@Results({ 
		@Result(column = "tab_id", property = "tabId"), 
		@Result(column = "tab_name", property = "tabName"),
		@Result(column = "forum_id", property = "forumId"),
		@Result(column = "tab_status", property = "tabStatus") 
	})
	@Select("select * from tab where tab_id = #{tabId}")

	Tab getById(Integer tabId);

}
